import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import microApp from '@micro-zoe/micro-app'
import './public-path'
import pack from '/package.json'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'
import 'vue-draggable-resizable/dist/VueDraggableResizable.css'
import router from '@/router'
microApp.start({
  tagName: 'micro-app-' + pack.name, //保持与工程名相同,嵌入的子应用与基座同名时会报错
})
console.log('环境类型', process.env)
window.APP = createApp(App)
window.APP.config.warnHandler = () => null
window.APP.use(createPinia())
window.APP.use(Antd)
window.APP.use(router)
window.APP.mount('#app')
